home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4334 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  991 b 

  1. Path: news.informatik.uni-kiel.de!ma
  2. From: ma@informatik.uni-kiel.de (Martin Ameskamp)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: help finding ranges of types
  5. Date: 29 Jan 1996 20:12:06 GMT
  6. Organization: Dept. of Computer Science, University of Kiel, FRG
  7. Message-ID: <4ej9mm$r6c@gutemine.informatik.uni-kiel.de>
  8. References: <4eiud1$r0u@geraldo.cc.utexas.edu>
  9. NNTP-Posting-Host: rigel.informatik.uni-kiel.de
  10.  
  11. In <4eiud1$r0u@geraldo.cc.utexas.edu> trakas@mail.utexas.edu (Travis Kaspar) writes:
  12.  
  13. >I have to determine the ranges (ie allowable values) for all 
  14. >the basic types, without using sizeof(type).  I know I could increment
  15. >from 0 until the sign changed, but I don't think that will work with float,
  16. >and there's bound to be an easier way (doesn't there?)
  17. >Thanks,
  18. >Travis Kaspar
  19. >trakas@mail.utexas.edu
  20.  
  21.     My machine has a file values.h that has all this information.
  22.     The corresponding man page claims conformance with
  23.     X/Open Portability Guide, Issue 3, 1989.
  24.  
  25.     Does that help?
  26.  
  27.     Martin
  28.